#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int f = 0, z = 0, n = 0;
	float ave ,s=0;
	int shu[2001] = {0};
	int t = 0;
	scanf("%d", &n);
	
		for (int i = 0; i < n; i++)
		{
			scanf("%d", &shu[i]);
		}
	
		for (int i = 0; i < n; i++)
		{
			if (shu[i] < 0)
				f = f + 1;
			if (shu[i] > 0)
			{
				s = s + shu[i];
				z = z + 1;
			}
		}
	
	if (z != 0)
		ave = s / z;
	else
		ave = 0;
	printf("%d %.1f\n", f, ave);
	return 0;
}